package com.oa.Response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {
    private  int code;
    private  String msg;
    private  T data;

    public  static<T>  Result<T> regSuccess(T data){
        Result<T> result=new Result<>();
        result.setCode(200);
        result.setMsg("注册成功");
        result.setData(data);
        return result;
    }
}